package integration.data.task.api.transformation.impl;

import integration.data.task.api.transformation.ComplexTransformer;

import java.util.Map;

/**
 * 每个func对应一个实例.
 */

public class TransformerExecution {


    private final TransformerExecutionParas transformerExecutionParas;
    private final TransformerInfo transformerInfo;

    private boolean isChecked = false;

    public TransformerExecution(TransformerInfo transformerInfo, TransformerExecutionParas transformerExecutionParas) {
        this.transformerExecutionParas = transformerExecutionParas;
        this.transformerInfo = transformerInfo;
    }

    public void setIsChecked(boolean isChecked) {
        this.isChecked = isChecked;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public Integer getColumnIndex() {
        return transformerExecutionParas.getColumnIndex();
    }

    public String getTransformerName() {
        return transformerInfo.getTransformer().getTransformerName();
    }

    public ComplexTransformer getTransformer() {
        return transformerInfo.getTransformer();
    }

    public Map<String, Object> getParas() {
        return transformerExecutionParas.getParas();
    }
}
